<%@ page import="support.*, java.util.*, java.sql.*, javax.sql.*" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %> 
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>

<jsp:include page="header.jsp" />

<%
// Get Vector of specializations
support s = new support(); 
String path = config.getServletContext().getRealPath("specializations.txt");
Vector specializations = s.getCountries(path);
%>

	<div id="content" class="expand">
		<h2>Graduate Application</h2>

		<p>Choose your specialization</p>

		<html:form action="students/specialization">
			<html:select name="StudentsForm" property="specialization" >
			<%
			    for( int i = 0; i < specializations.size(); i++ )
			    {
			%>
    			<html:option value="<%= (String)specializations.get(i) %>">
    				<%= specializations.get(i) %>
    			</html:option>
			<%
			    }
			%>
			</html:select>
			<input type="submit" value="Submit"/>
		</html:form>

	</div>

</body>
</html>